/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package thread.demo.newpackage;

/**
 *
 * @author VANDH
 */
// cài đặt interface Runnable
public class AirConditioner implements Runnable {
    @Override
    public void run() {
        System.out.println("Air Conditioner - I'm running here...");
        try {
            System.out.println("Air Conditioner - Sleep 1s");
            Thread.sleep(1000);
            System.out.println("Air Conditioner - Awaken");
        } catch (InterruptedException ex) {
            ex.printStackTrace();
        }
    }
}
